cmake_minimum_required(VERSION 3.30)
project(arm)

set(CMAKE_CXX_STANDARD 17)

if (NOT TARGET sockcanpp)
    add_subdirectory(3rdparty/libsockcanpp)
endif()



add_executable(arm main.cpp)
add_executable(3508 3508.cpp
        src/PID.h)
add_executable(3508_single 3508_single.cpp)
add_executable(3508_single_speed_pid 3508_single_speed_pid.cpp
        src/PID.h)
add_executable(3508_single_pos_pid 3508_single_pos_pid.cpp
        src/PID.h)
add_executable(test_send test_send.cpp)

target_link_libraries(arm sockcanpp)
target_link_libraries(3508 sockcanpp)
target_link_libraries(3508_single sockcanpp)
target_link_libraries(3508_single_speed_pid sockcanpp)
target_link_libraries(3508_single_pos_pid sockcanpp)
target_link_libraries(test_send sockcanpp)